<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ejs模板引擎</title>
</head>
<body>
    <h1>ejs模板引擎</h1>
    <% let username = "张三" %> 
    <h3>
        welcome to ejs 
        <%= username %> 
    </h3>

    <ul>
        <% for(let i = 0;i<10;i++) { %>
        <li>
            <%= i %> 
        </li> 
    <% } %> 
    </ul>
    <% let flag = false %> 
    <% if(flag) { %>
    <div>这是true</div> 
    <% } %> 


    <% if(flag) { %>
    <div>这是true</div> 
    <% }else{ %> 
    <div>这是false</div>
    <% } %> 



</body>
</html>